package com.chen.springcloud.user.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author chentian
 * @date 2021/12/25
 */
@Slf4j
@RestController
@RequestMapping("/api/uaa/hello")
public class HelloWorld {

    @RequestMapping("")
    public String hello(){
        log.info("hello world!");
        return "hello";
    }

    @GetMapping("/word/{word}")
    public String word(@PathVariable String word){
        log.info("word:"+word);
        return "hello world! "+word;
    }
}
